package com.wcl.nullmusic.ui.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.wcl.nullmusic.ui.fragment.FragmentFactory;

/**
 * Created by dllo on 16/1/25.
 */
public class MusicViewPagerAdapter extends FragmentPagerAdapter {
    public MusicViewPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return FragmentFactory.createFragment(10+position);
    }

    @Override
    public int getCount() {
        return 2;
    }
}
